﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data.Common;

namespace EasyMapping.Core
{
    [DefaultImplementationClass(ClassName = "SQLDataProvider")]
    public interface IDataProvider:IDataFactory
    {
        Providers ProviderType { get; set; }
        DbDataReader ProvideDataByProcedure(DbCommand cmd, string cmdText, Dictionary<string, IProcedureParameter> commonParameters);
        int ChangeDataByProcedure(DbCommand cmd, string cmdText, Dictionary<string, IProcedureParameter> commonParameters, object obj);
    }
}
